// import store from '../store';
import {FANS_JIA, FANS_JIAN} from '../constants';
// 声明创建 action 对象的函数
export function jiaAction(data){
    return {
        type: FANS_JIA,
        data: data
    }
}

export function jianAction(data){
    return {
        type: FANS_JIAN,
        data
    }
}

export function asyncJiaAction(data){
    return (dispatch) => {
        setTimeout(() => {
            dispatch(jiaAction(data));
        }, 1000);
    }
}